package com.ruoyi.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息管理对象 blog_message
 *
 * @author 刘哲贤
 * @date 2022-08-30
 */
public class BlogMessage extends BaseEntity
        {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    private Long id;

    /** 事件(1:喜欢;2:;3:评论;4:回复) */
            @Excel(name = "事件(1:喜欢;2:;3:评论;4:回复)")
    private String event;

    /** 消息来源用户id */
            @Excel(name = "消息来源用户id")
    private Long fromId;

    /** 文章id */
            @Excel(name = "文章id")
    private Long articleId;

    /** 状态(0:未读;1:已读) */
            @Excel(name = "状态(0:未读;1:已读)")
    private String status;

    /** 所属用户id */
            @Excel(name = "所属用户id")
    private Long userId;

    public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
    public void setEvent(String event)
            {
            this.event = event;
            }

    public String getEvent()
            {
            return event;
            }
    public void setFromId(Long fromId)
            {
            this.fromId = fromId;
            }

    public Long getFromId()
            {
            return fromId;
            }
    public void setArticleId(Long articleId)
            {
            this.articleId = articleId;
            }

    public Long getArticleId()
            {
            return articleId;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }
    public void setUserId(Long userId)
            {
            this.userId = userId;
            }

    public Long getUserId()
            {
            return userId;
            }

@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("event",getEvent())
            .append("fromId",getFromId())
            .append("articleId",getArticleId())
            .append("status",getStatus())
            .append("userId",getUserId())
            .append("createTime",getCreateTime())
        .toString();
        }
        }
